#-*- coding:utf-8 -*-
import requests
import json
import ssl

import warnings
warnings.filterwarnings("ignore")


#ssl._create_default_https_context=ssl._create_unverified_context
headers={
        'User-Agent':'Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/52.0.2743.116 Safari/537.36',
        #'Accept':'text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8',
        #'Accept-Encoding':'gzip, deflate, sdch, br',
        #'Content-Type':'application/x-www-form-urlencoded; charset=UTF-8',
        #'Accept-Language':'zh-CN,zh;q=0.8',
        #'Connection':'keep-alive',
        #'Host':'10.22.52.21',
        'Origin':'https://10.22.52.21',
        'X-Requested-With':'XMLHttpRequest',
        'Referer':'https://10.22.52.21/SPM/main.php'
        }
s=requests.Session()
#s.headers.update(headers)
data={'passwd':'admin','userid':'admin'}
#s.get('https://10.22.52.21/SPM/index-private.php')
print('------------------------------------------')
r=s.post('https://10.22.52.21/iotp/web/WebHome/login',data=data,headers=headers,verify=False)



#AAA--ZZZ
a=b=c=ord('A')
for i in range(100):
    name=chr(a)+chr(b)+chr(c)
    print(name)
    if c == ord('Z'):
        c=ord('A')
        if b!=ord('Z'):
            b=b+1
        else :
            b=ord('A')
            a=a+1
    else:
        c=c+1
        
